// To parse this JSON data, do
//
//     final deviceBean = deviceBeanFromJson(jsonString);

import 'dart:convert';

import 'package:json_annotation/json_annotation.dart';

part 'device_bean.g.dart';

DeviceBean deviceBeanFromJson(String str) =>
    DeviceBean.fromJson(json.decode(str));

String deviceBeanToJson(DeviceBean data) => json.encode(data.toJson());

@JsonSerializable()
class DeviceBean {
  @JsonKey(name: "hw")
  String hw;
  @JsonKey(name: "imei")
  String imei;
  @JsonKey(name: "imei2")
  String imei2;
  @JsonKey(name: "deviceModel")
  String deviceModel;
  @JsonKey(name: "sn")
  String sn;
  @JsonKey(name: "lng")
  String lng;
  @JsonKey(name: "mf")
  String mf;
  @JsonKey(name: "did")
  String did;
  @JsonKey(name: "pg")
  String pg;
  @JsonKey(name: "rom")
  String rom;
  @JsonKey(name: "sys")
  String sys;
  @JsonKey(name: "net")
  String net;
  @JsonKey(name: "ver")
  String ver;

  DeviceBean({
    required this.hw,
    required this.imei,
    required this.imei2,
    required this.deviceModel,
    required this.sn,
    required this.lng,
    required this.mf,
    required this.did,
    required this.pg,
    required this.rom,
    required this.sys,
    required this.net,
    required this.ver,
  });

  factory DeviceBean.fromJson(Map<String, dynamic> json) =>
      _$DeviceBeanFromJson(json);

  Map<String, dynamic> toJson() => _$DeviceBeanToJson(this);
}
